<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

    return [
        '__pattern__' => [
            'name' => '\w+',
        ],
        '[/]' => [
            '' => ['listen/Listen/index', ['method' => 'get']],
        ],
        // 用户授权
        '[api/v1.0/user/authorize]' => [
            '' => ['listen/Listen/authorize', ['method' => 'post']],
        ],
        '[api/v1.0/user/edit]' => [
            '' => ['listen/Member/edit', ['method' => 'post']],
        ],
        // 记录列表
        '[api/v1.0/record/list]' => [
            '' => ['listen/Listen/lists', ['method' => 'post']],
        ],
        // 记录详情
        '[api/v1.0/record/detail]' => [
            '' => ['listen/Listen/detail', ['method' => 'post']],
        ],
        // 用户列表
        '[api/v1.0/record/user]' => [
            '' => ['listen/Listen/user', ['method' => 'post']],
        ],
        // 我的喜欢列表
        '[api/v1.0/record/love/list]' => [
            '' => ['listen/Listen/mylove', ['method' => 'post']],
        ],
        // 被喜欢总数
        '[api/v1.0/record/love/count]' => [
            '' => ['listen/Listen/loveCount', ['method' => 'post']],
        ],
        // 记录增加
        '[api/v1.0/record/add]' => [
            '' => ['listen/Listen/add_voice', ['method' => 'post']],
        ],
        // 记录删除
        '[api/v1.0/record/del]' => [
            '' => ['listen/Listen/del', ['method' => 'post']],
        ],
        // 播放记录
        '[api/v1.0/record/play]' => [
            '' => ['listen/Listen/play', ['method' => 'post']],
        ],
        // 转发记录
        '[api/v1.0/record/share]' => [
            '' => ['listen/Listen/share', ['method' => 'post']],
        ],

        // 喜欢
        '[api/v1.0/record/love]' => [
            '' => ['listen/Listen/love', ['method' => 'post']],
        ],

        // 不喜欢
        '[api/v1.0/record/dislove]' => [
            '' => ['listen/Listen/dislove', ['method' => 'post']],
        ],
        // 审核记录
        '[api/v1.0/record/audit]' => [
            '' => ['listen/Listen/audit', ['method' => 'post']],
        ],
        // 上传单个
        '[api/v1.0/upload_file/one_upload]' => [
            '' => ['upload_file/upload_file/one_upload', ['method' => 'post']],
        ],
        // 上传接口
        '[api/v1.0/upload_file/upload_photo]' => [
            '' => ['upload_file/upload_file/upload_photo', ['method' => 'post']],
        ],
        // 语音评论列表
        '[api/v1.0/comment/list]' => [
            '' => ['listen/Comment/commentList', ['method' => 'post']],
        ],
        // 添加语音评论
        '[api/v1.0/comment/add]' => [
            '' => ['listen/Comment/addComment', ['method' => 'post']],
        ],
        // 删除语音评论
        '[api/v1.0/comment/del]' => [
            '' => ['listen/Comment/delComment', ['method' => 'post']],
        ],
        // 喜欢评论
        '[api/v1.0/comment/love]' => [
            '' => ['listen/Comment/loveComment', ['method' => 'post']],
        ],
        // 不喜欢评论
        '[api/v1.0/comment/dislove]' => [
            '' => ['listen/Comment/disloveComment', ['method' => 'post']],
        ],

        // 增加消息
        '[api/v1.0/message/add]' => [
            '' => ['listen/Message/add', ['method' => 'post']],
        ],
        // 记录删除
        '[api/v1.0/message/del]' => [
            '' => ['listen/Message/del', ['method' => 'post']],
        ],
        // 消息列表
        '[api/v1.0/message/list]' => [
            '' => ['listen/Message/lists', ['method' => 'post']],
        ],
        // 消息列表
        '[api/v1.0/wx/qrcode]' => [
            '' => ['listen/WX/getWxcode', ['method' => 'post']],
        ],
        // 消息列表
        '[api/v1.0/env]' => [
            '' => ['listen/Listen/env', ['method' => 'post']],
        ],
    ];
